package com.edu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 所有的点赞表
 * </p>
 *
 * @author GongChengShi
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class EduPraise implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @TableField("USER_ID")
    private Integer userId;

    /**
     * 点赞的对象id
     */
    @TableField("TARGET_ID")
    private Integer targetId;

    /**
     * 点赞类型 1问答点赞 2问答评论点赞 3 文章点赞数4 评论点赞
     */
    @TableField("TYPE")
    private Integer type;

    /**
     * 添加时间
     */
    @TableField("ADD_TIME")
    private LocalDateTime addTime;


}
